package cn.kgc.spring.day02.service.impl;

import cn.kgc.spring.day02.mapper.UserMapper;
import cn.kgc.spring.day02.service.UserService;

/**
 * @author 课工场
 * @date 2024/7/12
 * @description
 */
public class UserServiceImpl implements UserService {

    private UserMapper oracleMapper;

    public void setOracleMapper(UserMapper userMapper){
        this.oracleMapper = userMapper;
    }
    @Override
    public Boolean deleteUser(Integer id) {

       Integer line = oracleMapper.deleteUser(id);
        return line==1;
    }
}
